<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ taglib prefix = "s" uri ="/struts-tags" %>
<%@ taglib uri="/struts-dojo-tags" prefix="sx"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'index.jsp' starting page</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<!-- <s:head theme="simple"/> -->
	<s:head theme="xhtml"/>  
	<sx:head parseContent="true"/> 
  </head>
  
  <body>
中央二级分类
	<br/>
	
	<!-- 
	<form action="taxFile!showTaxFileListByContentKey" method="post">
		SecondId:<input type="text" name="secondId"/>
		按内容关键字查询：<input type="text" name="contentKey"/>
		<input type="submit" value="查询"/>
	</form> 
	<br>
	
	<form action="taxFile!showTaxFileListByTitleKey" method="post">
		SecondId:<input type="text" name="secondId"/>
		按标题关键字查询：<input type="text" name="titleKey"/>
		<input type="submit" value="查询"/>
	</form> 
	<br>
	
	<form action="taxFile!showTaxFileListByNoKey" method="post">
		SecondId:<input type="text" name="secondId"/>
		按文号查询：<input type="text" name="noKey"/>
		<input type="submit" value="查询"/>
	</form> 
	<br>
	
	<form action="taxFile!showTaxFileListBystatus" method="post">
		SecondId:<input type="text" name="secondId"/>
		<s:radio label="状态" list="{'有效法规','失效法规','部分失效','全文过时','基本法规','所有法规'}" name="fileStatus"/>
		<input type="submit" value="查询"/>
	</form> 
	<br>
	
	
	
	<form action="taxFile!showTaxFileListByTime" method="post">
	SecondId:<input type="text" name="secondId"/>
	<sx:datetimepicker value="today" name="startTime" label="开始时间"></sx:datetimepicker>
	<sx:datetimepicker value="today" name="endTime" label="截止时间"></sx:datetimepicker>
	<input type="submit" value="查询"/>
	</form>
	 -->
	
	

<!-- 二级分类表 -->
<%--  <table border="1">
    	<s:iterator value="#request.zySecondList" id="zySecond" status="s">
    	
    	 <tr>
    		<td>
    				
    				<a href="addSecondId/taxFile_add_admin.jsp?secondId=<s:property value='#zySecond.secondId'/>">
    					<s:property value="#zySecond.SecondName"/>
    					<s:hidden value="%{#zySecond.secondId}" name="secondId"/>
    				</a>
    		</td>
    	</tr>
    	  	
    	
    	</s:iterator>
    	
    	
    	
    </table> --%>
    
    <form action="taxFile!addTaxFile" method="post">
 <table border="1">
		<tr>
			<td>
				<center>
					增加文档
				</center>
			</td>
		</tr> 	
 		<tr>
 			<td>标题*：<s:textfield theme="simple" name="fileTitle"/></td>
 		</tr>
 		<tr>
 			<td>文件号：<s:textfield theme="simple" name="fileNo"/></td>
 		</tr>
 		<tr>
 			<td>发布时间*：<sx:datetimepicker value="today" name="fileDate" ></sx:datetimepicker></td>
 		</tr>
 		<tr>
 			<td>总分类标签：<s:textfield theme="simple" name="fileAllInfoTage"/></td>
 		</tr>
 		 <tr>
 			<td>二级分类标签*： <br>
 			<!-- <s:checkboxlist name="fileSecondTag" list="#request.zySecondList" listKey="secondId" listValue="secondName" theme="simple"/>
    -->
   			<s:iterator value="#request.zySecondList" id="zySecond" status="s">
    			<s:if test="#s.count%4==3">    			
 					<s:checkbox id="fileSecondTag" name="fileSecondTag" fieldValue="%{#zySecond.secondId}" theme="simple">
 						<s:property value="#zySecond.secondName"/>
 					</s:checkbox>
 					<br>
 				</s:if>
 				<s:else>
 					<s:checkbox id="fileSecondTag" name="fileSecondTag" fieldValue="%{#zySecond.secondId}" theme="simple">
 						<s:property value="#zySecond.secondName"/>
 					</s:checkbox>
 				</s:else>
 				
 			</s:iterator>
 			</td>
 		</tr>
 		<tr>
 			<td>内容*：<br><s:textarea cols="80" rows="10" theme="simple" name="fileContent"/></td>
 		</tr>
 		<tr>
 			<td>状态*：<s:radio value="'有效法规'" theme="simple" list="{'有效法规','失效法规','部分失效','全文过时','基本法规'}" name="fileStatus"/></td>
 		</tr>
 		<tr>
 			<td>备注：<s:textfield theme="simple" name="fileInfo"/></td>
 		</tr>
 		<tr>
 			<td>参考文件：<s:textfield theme="simple" name="fileReference"/></td>
 		</tr>
 		<tr>
 			<td>
 			<s:property value='#parameters.secondId'/>
 			<!-- 	<s:hidden name="fileSecondTag" value="%{#parameters.secondId}"/> -->
 				<input type="submit"/>
 			</td>
 		</tr>
    	
    </table>
   </form>
    
    
  </body>
</html>
